package com.example.hhhh;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;


/**
 * @ProjectName: FushiFarking
 * @Package: com.tdlbs.fujiparking.widget
 * @ClassName: CommonDialog
 * @Description: 冻结账单说明
 * @Author: songhua
 * @CreateDate: 2018/11/21 14:37
 * @Version: 1.0
 */
public class BillDescriptionDialog extends Dialog implements View.OnClickListener {

    TextView mRecharge;
    private Context mContext;


    public BillDescriptionDialog(Context mContext) {
        super(mContext, R.style.CustomDialog);
        this.mContext = mContext;


    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.bill_description_dialog);
        Window dialogWindow = getWindow();
        //dialogWindow.setWindowAnimations(R.style.dialogstyle);
        WindowManager.LayoutParams lp = dialogWindow.getAttributes();
        lp.width = mContext.getResources().getDisplayMetrics().widthPixels - 200;
        lp.height = WindowManager.LayoutParams.WRAP_CONTENT;
        //lp.alpha = 9f; // 透明度
        dialogWindow.setAttributes(lp);
        setCancelable(false);//点击空白处不消失
        mRecharge = findViewById(R.id.dialog_recharge);

        mRecharge.setOnClickListener(this);

    }


    @Override
    public void onClick(View v) {
     if (v.getId() == R.id.dialog_recharge) {

        }
        dismiss();
    }


}
